#include <fstream>
#include <cstdlib>
#include <iomanip>

using namespace std;

char FILENAME[20] = "HotelReview.txt";
int MIN_REVIEW = 1;
int MAX_REVIEW = 5;
int NO_OF_REVIEWS = 3910;
int NO_OF_HOTELS = 391;
int NO_OF_MEMBERS = 1000;

int main()
{
	fstream file(FILENAME, ios::out);
	
	srand(time(NULL));
	int h, m, l, v, c, s;
	
	for(int i = 1; i <= NO_OF_REVIEWS; i++)
	{
		h = (rand() % NO_OF_HOTELS) + 1;
		srand(rand());
		m = (rand() % NO_OF_MEMBERS) + 1;
		srand(rand());		
		l = (rand() % MAX_REVIEW) + MIN_REVIEW;
		srand(rand());		
		v = (rand() % MAX_REVIEW) + MIN_REVIEW;		
		srand(rand());		
		c = (rand() % MAX_REVIEW) + MIN_REVIEW;	
		srand(rand());		
		s = (rand() % MAX_REVIEW) + MIN_REVIEW;
		
	file << "HR" << setw(5) << setfill('0') << i << "|"
		 << "HI" << setw(5) << setfill('0') << h << "|"
		 << "ID" << setw(5) << setfill('0') << m << "|"
		 << l << "|"
		 << v << "|"
		 << c << "|"
		 << s << "\n";
	}
}